package org.example.common.base.response;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "额外字段")
public class ExtData {

    @ApiModelProperty(value = "获取调用结果的时间", example = "2023-06-11 14:30:00.123")
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss.SSS")
    private LocalDateTime eventTime;

    @ApiModelProperty (value = "自定义字段 json 字符串", example = "{\"key\":\"value\"}")
    private String customizedFields;

}
